import Vue          from 'vue'
import Router       from 'vue-router'
// 启动页
import start        from '../components/startPage/start'

// 训练
import home         from '../components/home/home'
import search       from '../components/search/search'
import result       from '../components/search/searchResult'
import door         from '../components/home/door'
import productDetails     from '../components/home/productDetails'
import lessons      from '../components/home/lessons'

// 新闻
import news         from '../components/news/news'

// 发现
import discover     from '../components/discover/discover'
import location     from '../components/discover/location'
import trainCamp    from '../components/discover/trainCamp'
import trainDetails from '../components/discover/trainDetails'
import trainorder   from '../components/discover/trainorder'
import paymentOrder from '../components/discover/paymentOrder'
import topic        from '../components/discover/topic'
import hallfame     from '../components/discover/hallfame'





// 约球
import basketball   from '../components/basketball/basketball'

// 电影
import movie        from '../components/movie/movie'


// 我的
import my           from '../components/my/my'
import login        from '../components/login/login'
import register     from '../components/login/register'
import info         from '../components/info/information'
import changeinfo   from '../components/info/changeinfo'

// 我的/上面部分
import attention    from '../components/bannerlist/attention'
import dynamic      from '../components/bannerlist/dynamic'
import fans         from '../components/bannerlist/fans'

// 我的/中间部分
import qiandao      from '../components/middlelist/qiandao'
import download     from '../components/middlelist/download'
import like         from '../components/middlelist/like'
import comment      from '../components/middlelist/comment'

// 我的/下面部分
import systemSet    from '../components/bottomlist/systemset'
// systemset 关键字
import msg          from '../components/bottomlist/msg'
import order        from '../components/bottomlist/order'

// 我的课程
import mycourse     from '../components/mycourse/mycourse'
import elementui    from '../components/mycourse/elementui'



Vue.use(Router)

export default new Router({
    routes: [
        { path: '/',name: 'home',component: home }, 
        { 
            path: '/door',
            name: 'door',
            component: door 
        },
        
        { 
            path: '/productDetails',
            name: 'productDetails',
            component: productDetails 
        },
        
        { path: '/elementui',name: 'elementui',component: elementui },
        
        { path: '/hallfame',name: 'hallfame',component: hallfame },
        
        { path: '/topic',name: 'topic',component: topic },

        { path: '/paymentOrder',name: 'paymentOrder',component: paymentOrder },
        
        
        { path: '/trainorder',name: 'trainorder',component: trainorder },
        
        { path: '/trainDetails',name: 'trainDetails',component: trainDetails },
        
        
        { path: '/trainCamp',name: 'trainCamp',component: trainCamp },

        { path: '/location',name: 'location',component: location },
        
        { path: '/lessons',name: 'lessons',component: lessons },
        { path: '/systemSet',name: 'systemSet',component: systemSet },
        { path: '/msg',name: 'msg',component: msg }, 
        { path: '/mycourse',name: 'mycourse',component: mycourse }, 
        { path: '/order',name: 'order',component: order }, 
        { path: '/download',name: 'download',component: download }, 
        { path: '/like',name: 'like',component: like }, 
        { path: '/comment',name: 'comment',component: comment }, 
        { path: '/search',name: 'search',component: search },
        { path: '/result',name: 'result',component: result },
        {
            path: '/qiandao',
            name: 'qiandao',
            component: qiandao
        },
        {
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/register',
            name: 'register',
            component: register 
        },
        {
            path:'/news',
            name: 'news',
            component: news 
        },
        {
            path:'/discover',
            name: 'discover',
            component: discover
        },
        {
            path:'/basketball',
            name: 'basketball',
            component: basketball
        },
        {
            path:'/my',
            name: 'my',
            component: my
        },
        {
            path:'/info',
            name: 'info',
            component: info
        },
        {
            path:'/changeinfo',
            name: 'changeinfo',
            component: changeinfo
        },
        {
            path:'/movie',
            name: 'movie',
            component: movie
        },
        {
            path:'/attention',
            name: 'attention',
            component: attention
        },
        {
            path:'/dynamic',
            name: 'dynamic',
            component: dynamic
        },
        {
            path:'/fans',
            name: 'fans',
            component: fans
        }
    ]
})
